package com.guchenbo.example.io;

import java.nio.charset.StandardCharsets;

/**
 * @author guchenbo
 * @date 2022/4/30
 */
public class StringDeserializer implements GuDeserializer<String> {

    @Override
    public String deserialize(byte[] bytes) {
        return new String(bytes, StandardCharsets.UTF_8);
    }
}
